<?php
/**
 * @copyright 
 * @license https://opensource.org/licenses/Apache-2.0
 * @link https://www.gougucms.com
 */

namespace app\admin\validate;
use think\Validate;

class ScoreOrderValidate extends Validate
{
    protected $rule = [
    'uid' => 'require',
    'order_no' => 'require',
    'goods_id' => 'require',
    'amount' => 'require',
    'remark' => 'require',
    'goods_info' => 'require',
    'pay_time' => 'require',
    'yun' => 'require',
    'status' => 'require',
    'address' => 'require',
    'is_send' => 'require',
    'express_id' => 'require',
    'express' => 'require',
    'express_num' => 'require',
    'send_time' => 'require',
    'deviceId' => 'require',
    'order_type' => 'require',
    'confirm_time' => 'require',
    'create_time' => 'require',
    'update_time' => 'require',
];

    protected $message = [
    'uid.require' => '用户ID不能为空',
    'order_no.require' => '订单号不能为空',
    'goods_id.require' => '商品ID不能为空',
    'amount.require' => '支付金额不能为空',
    'remark.require' => '买家备注不能为空',
    'goods_info.require' => '商品名称不能为空',
    'pay_time.require' => '支付时间不能为空',
    'yun.require' => '运费不能为空',
    'status.require' => '支付状态:1待收货,2已完成不能为空',
    'address.require' => '收货地址不能为空',
    'is_send.require' => '是否发货：0否 1是不能为空',
    'express_id.require' => '快递ID不能为空',
    'express.require' => '快递不能为空',
    'express_num.require' => '快递单号不能为空',
    'send_time.require' => '发货时间不能为空',
    'deviceId.require' => '设备ID不能为空',
    'order_type.require' => '订单类型：1实物 2虚拟物品不能为空',
    'confirm_time.require' => '使用时间不能为空',
    'create_time.require' => '下单时间不能为空',
    'update_time.require' => '编辑时间不能为空',
];
}